<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="p" %>
<%String ctx = request.getContextPath(); %>

<jsp:include page="../common/operate.jsp">
	<jsp:param name="title1" value="用户列表"/>
	<jsp:param name="title2" value=""/>
	<jsp:param name="isShowAddBtn" value="true"/>
	<jsp:param name="isShowUpdateBtn" value="true"/>
	<jsp:param name="isShowDeleteBtn" value="true"/>
</jsp:include>

  <div style="width:98%" class="f_l margin1">
  <s:form id="listForm" method="POST" theme="simple">
    <table width="98%" cellspacing="0" cellpadding="0" border="0" class="clear f_l padding3" id="tb">
      <tr class="bg4_nav" align="center">
      	<td width="6%" style="border:0">
			<input onclick="javascript:batchSelect(this)" type="checkbox" style="border:0" name="List_Selected2">
		</td>
        <td width="4%" style="border:0">
                           序号
        </td>
        <td width="8%" style="border:0">
                          姓名
        </td>
        <td width="8%" style="border:0"> 
                          职位
        </td>
        <td width="8%" style="border:0">
                          手机
        </td>
        <td width="10%" style="border:0">
                          邮箱
        </td>
        <td width="10%" style="border:0">
                          传真
        </td>
        <td width="10%" style="border:0">
                          身份
        </td>
      </tr>
    <s:iterator value="pager.result" status="status">
      <tr onmouseover="this.bgColor='#F2E6E6'" onmouseout="this.bgColor=''">
       <td class="border_tb" align="center">
       		<input type="checkbox" style="border:0" name="ids" value="${id }">
       </td>
        <td class="border_tb" align="center">
      		&nbsp;<s:property value="id"/>
        </td>
        <td class="border_tb">
          &nbsp;<s:property value="userName"/>
        </td>
        <td class="border_tb">
         &nbsp;<s:property value="positionName"/>
        </td>
        <td class="border_tb">
          &nbsp;<s:property value="mobile"/>
        </td>
        <td class="border_tb">
          &nbsp;<s:property value="email"/>
        </td>
        <td class="border_tb">
         &nbsp;<s:property value="fax"/>
        </td>
        <td class="border_tb">
          &nbsp;<s:property value="userTypeName"/>
        </td>
      </tr>
    </s:iterator>
    </table>
    </s:form>
    <div class="f_l margin1"><img src="<%=ctx%>/img/business/main_07.jpg"></div>
    </div>
    <div style="width: 90%;margin-top: 20px;">
      <p:page pager="${pager}" url="user!list.action" namespace="/user"/>
    </div> 

<script type="text/javascript">
$(window).ready(function(){
	addOperate('addButton','<%=ctx%>/user/user!add');
	updateOperate('updateButton','<%=ctx%>/user/user!toEdit');
	batchDelete('deleteButton','listForm','<%=ctx%>/user/user!deleteAll');
	isAllSelected('listForm');	
});
</script>
